package org.water;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
//import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;

/**
 * 应用程序入口,不使用默认的数据源，使用自定义的数据源
 * @author qzy
 *
 */
@SpringBootApplication
public class WaterBootWeb extends SpringBootServletInitializer {
	/**
	 * 入口
	 * @param args
	 */
	public static void main(String[] args) {
		SpringApplication.run(WaterBootWeb.class, args);
	}
	/**
	 * 应用配置
	 */
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(WaterBootWeb.class);
	}
	
}
